package components

import (
	v "github.com/gopherjs/vecty"
	"github.com/gopherjs/vecty/elem"
	"github.com/gopherjs/vecty/prop"
	"web/store"
)

type MainFrame struct {
	v.Core
}

func (mf *MainFrame) Render() v.ComponentOrHTML {
	s := store.Get()
	return elem.Body(
		elem.Div(
			v.Markup(
				prop.ID("container"),
			),
			s.Connect(&NavBar{}),
			elem.Div(

			),
		),
		store.GetDialog().Connect(&Dialog{}),
	)
}